<?php $permArray=explode(",", $sessionUserData['user_permissions']); ?>
<table width="200px">
  <tr>
	<td align="center">
	<table width="70%" border="0" cellpadding="0" cellspacing="0">
	<?php if ($sessionUserData['user_id']==1){ ?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/addUser"
			class="<?php if ($pTabSelection=="addUser"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add User </a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/editUserPerm"
			class="<?php if ($pTabSelection=="editUserPerm"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Edit Permission </a></td>
	</tr>
    
	<?php } ?>
    <?php if (in_array(1, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/CategoryCMS"
			class="<?php if ($pTabSelection=="CategoryCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Category</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewCategories"
			class="<?php if ($pTabSelection=="viewCategories"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Categories </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(2, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/StoreCMS"
			class="<?php if ($pTabSelection=="StoreCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Store</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewStores/0-9"
			class="<?php if ($pTabSelection=="viewAirline"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Stores </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(3, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/CouponCMS"
			class="<?php if ($pTabSelection=="couponCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Deals</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewCoupons/0"
			class="<?php if ($pTabSelection=="viewCoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Deals </a></td>
	</tr>
	
	<?php } ?>

		<?php if (in_array(13, $permArray)){?>
		<tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/haveNoDesc"
                        class="<?php if ($pTabSelection=="haveNoDescription"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Have No Description </a></td>
    	</tr>
    	<!-- <tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/getCciCoupons"
                        class="<?php //if ($pTabSelection=="getcoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Get Coupons </a></td>
        </tr> -->		
	<?php } ?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/logOut"
			class="<?php if ($pTabSelection=="logOut"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">Log
				Out </a></td>
	</tr>
	</table>
	</td>
  </tr>
</table>
